<html>
<head>
	<title><?php echo $pegawai->nama?></title>
	<meta charset="utf-8" />
	<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>assets/grocery_crud/css/app.css">
<!-- 	<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>assets/grocery_crud/css/font-awesome.min.css"> -->
	<style type="text/css">
	.pdf td.no-border-left{
		border-left: none !important;
	}
	.pdf td.no-border-top{
		border-top: none !important;
	}
	.pdf td.no-border-right{
		border-right: none !important;
	}
	.pdf td.no-border-bottom{
		border-bottom: none !important;
	}
	body,table td,table th{
		font-family: Helvetica;
		font-size: 9px;
	}
	table td,table th{
		padding: 2px 7px;
	}
	table.pdf,.pdf2{
		border-collapse: collapse;
	}
	.pdf th,.pdf td{
		font-size: 9px;
		border: solid 1px #5d5d5d;
		text-transform: uppercase;
	}
	body{
		/* border: 1px solid #ebebdb;*/
		 margin: 0;
		 padding:0;
  /*  padding: 1cm;*/
    width: 19cm;
	}

	td h2{
		margin: 0;
	}
	.pdf{
/*		width: 400px;*/
	}
	div.separator{
		height: 6em;
	}
	.pg{text-align:left;padding:0;margin: 0; }
	</style>



</head>
<body class="folio">


<table class="pdf" border="0" style="border-collapse:collapse;" width="">
	<tr>
<td colspan="9" valign="middle" align="center">
			<h2 style="text-align:center;font-size:18px;padding:6px;">
LAPORAN KINERJA PEGAWAI KELURAHAN LENGKONG WETAN <?php echo !empty($tahun) ? 'TAHUN '.$tahun:''; ?>

	</tr>
<!-- 	<tr>


		<td colspan="9" style="padding:0">
			<table border="0" width="100%" class="pdf2" >
				<tbody> -->
					<tr>
						<td class="label no-border-top no-border-right"></td>
						<td class="label no-border-top no-border-left no-border-right">Nama</td>
						<td class="no-border-top no-border-left no-border-right" colspan="3">:&nbsp;<?php echo $pegawai->nama?></b></td>
						<td  class=" no-border-top label no-border-right no-border-left">Golongan</td>
						<td  class=" no-border-top  no-border-left"  colspan="3">:&nbsp;<?php echo $pegawai->golongan; ?></td>
					</tr>
					<tr>
						<td class="label no-border-top no-border-right"></td>
						<td class="label no-border-top no-border-left no-border-right">NIP</td>
						<td class="no-border-top no-border-left no-border-right" colspan="3">:&nbsp;<?php echo $pegawai->nip?></b></td>
						<td  class=" no-border-top label no-border-right no-border-left">Instansi</td>
						<td  class=" no-border-top  no-border-left"  colspan="3">:&nbsp;<?php echo $pegawai->instansi; ?></td>
					</tr>
					<tr>
						<td class="label no-border-top no-border-right"></td>
						<td class="label no-border-top no-border-left no-border-right">Jabatan</td>
						<td class="no-border-top no-border-left no-border-right" colspan="3">:&nbsp;<?php echo $pegawai->jabatan?></b></td>
						<td  class=" no-border-top label no-border-right no-border-left">Atasan</td>
						<td  class=" no-border-top  no-border-left"  colspan="3">:&nbsp;<?php echo $pegawai->nama_atasan; ?></td>
					</tr>
				
		<!-- 		</tbody>
		</table>
		</td>
	</tr> -->
	<tr>
<td colspan="9" valign="middle" align="left">
			<div style="padding:1em">Periode : <?php echo (!empty($periode) ? ($periode['start'] .' S/D '. $periode['end']): '-') ;?></div>
	</tr>
	<tr>
		<th rowspan="2" width="8px">NO</th>
		<th rowspan="2" width="60px">TANGGAL</th>
		<th rowspan="2" width="70px">HARI</th>
		<th rowspan="2">URAIAN PEKERJAAN</th>
		<th colspan="2">PUKUL</th>
		<th rowspan="2">HASIL/OUTPUT</th>
		<th colspan="2">VERIFIKASI</th>
	</tr>
	<tr>
		<th width="60px" align="center">MULAI</th>
		<th width="60px" align="center">SELESAI</th>
		<th width="30px" align="center">YA</th>
		<th width="30px" align="center">TIDAK</th>
	</tr>
	<?php $number = 1;?>
	<?php if(count($data_aktifitas) > 0 ):?>
	<?php foreach($data_aktifitas as $data):?>
	<tr>
		<td align="center" valign="top"><?php echo $number++; ?></td>
		<td align="center" valign="top"><?php echo date('d/m/Y',strtotime($data->tgl_kegiatan)); ?></td>
		<td valign="top"><?php echo $data->hari; ?></td>
		<td valign="top"><p class="pg"><?php echo $data->uraian_kegiatan; ?></p></td>
		<td align="center" valign="top"><?php echo date('H.i',strtotime('2014-01-01 '.$data->waktu_mulai)); ?></td>
		<td align="center" valign="top"><?php echo date('H.i',strtotime('2014-01-01 '.$data->waktu_selesai)); ?></td>
		<td valign="top"><p class="pg"><?php echo $data->hasil; ?></P></td>
		<td align="center" valign="top"><?php echo $data->verifikasi == 'Ya' ? 'V' : ''; ?></td>
		<td align="center" valign="top"> <?php echo $data->verifikasi == 'Tidak' ? 'V' : ''; ?></td>
		
	</tr>
	<?php endforeach;?>
	<?php else:?>
	<tr>
		<td colspan="9">Tidak ada data yang dapat ditampilkan.</td>
	</tr>
	<?php endif; ?>
</table>
<br/>
<br/>
<table border="0" width="100%" cellpadding="4" colspacing="4">
	<tr><td colspan="3" align="center" valign="top">Mengetahui,</td></tr>

	<tr>
		<?php if( $pegawai->jabatan != 'Lurah'): ?>
		<td width="40%" align="center" valign="top">
			<div class="jabatan"><?php echo $pegawai->jabatan ?></div>
			<div class="separator"></div>
			<div class="hr"></div>
			<div class="name"><u><?php echo $pegawai->nama?></u></div>

		</td>	
		<?php else:?>
		<td></td>
		<?php endif;?>

		<td></td>
		
		<td width="40%" align="center" valign="top">
			<div class="jabatan">Lurah</div>
			<div class="separator"></div>
			<div class="hr"></div>
			<div class="name"><u><?php echo $lurah->nama?></u></div>
		</td>
	
		
	</tr>

</table>
</body>
</html>